use TeO, clear

local sample if bpl=="1101" &female==1  
local inter interm 
local controls i.birthyear i.religion tmuslim  
estimates clear

reg secondary `controls' `inter' `sample'&agenq>=20, cl(religion)
eststo m1

reg repclass `controls' `inter' `sample', cl(religion)
eststo m2

reg school_relpar `controls' `inter' `sample', cl(religion)
eststo m3

esttab m* using "TableB5.csv", star(+ 0.1 * 0.05 ** 0.01 *** 0.001) replace ///
		cells(b(fmt(a3) star) se(par)) stats(N r2)  ///
		keep(interm) 


